﻿//-----------------------------------------------------------------------
// <copyright file="ShowPrivateMessageParameters.cs" company="AFS">
// Copyright (c) AFS. All rights reserved.
//
//    This file is part of Chatbox.
//
//    Chatbox is free software: you can redistribute it and/or modify
//    it under the terms of the GNU Lesser General Public License as published by
//    the Free Software Foundation, either version 3 of the License, or
//    any later version.
//
//    Chatbox is distributed in the hope that it will be useful,
//    but WITHOUT ANY WARRANTY; without even the implied warranty of
//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
//    GNU Lesser General Public License for more details.
//
//    You should have received a copy of the GNU Lesser General Public License
//    along with Chatbox. If not, see http://www.gnu.org/copyleft/lesser.html
// </copyright>
//----------------------------------------------------------------------- 

namespace ChatBox.UI.Windows.SendPrivateMessage
{
    using System.Windows;
    using System.Windows.Input;

    using ChatBox.DomainObjects.XmlFeedObjects;
    using ChatBox.XamlUtility;

    /// <summary>
    /// Class to hold data for the "Send private message" command 
    /// </summary>
    public class ShowPrivateMessageParameters
    {
        /// <summary>
        /// Initializes a new instance of the ShowPrivateMessageParameters class
        /// </summary>
        /// <param name="parentWindow">the parent window</param>
        /// <param name="messageRecipient">the user to send to</param>
        /// <param name="hyperlinkContext">hyperlink paramters</param>
        /// <param name="operationCompletedCommand">the command to notify the application of completed operations</param>
        public ShowPrivateMessageParameters(
            Window parentWindow, 
            Link messageRecipient, 
            HyperlinkContext hyperlinkContext,
            ICommand operationCompletedCommand)
        {
            this.ParentWindow = parentWindow;
            this.MessageRecipient = messageRecipient;
            this.HyperlinkContext = hyperlinkContext;
            this.OperationCompletedCommand = operationCompletedCommand;
        }

        /// <summary>
        /// Gets the user to show
        /// </summary>
        public Link MessageRecipient { get; private set; }

        /// <summary>
        /// Gets the context for hyperlinks
        /// </summary>
        public HyperlinkContext HyperlinkContext { get; private set; }

        /// <summary>
        /// Gets the parent window
        /// </summary>
        public Window ParentWindow { get; private set; }

        /// <summary>
        /// Gets the command to notify the main window of an operation completed
        /// </summary>
        public ICommand OperationCompletedCommand { get; private set; }
    }
}
